home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2328 < prev    next >
Encoding:
Text File  |  1996-08-06  |  2.6 KB  |  64 lines

  1. Path: swcbbs.com!swcbbs!ken.brady
  2. From: ken.brady@swcbbs.com (KEN BRADY)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Is Pascal worth to le
  5. Message-ID: <8B8F52F.0054014CDF.uuout@swcbbs.com>
  6. Date: Tue, 16 Jan 96 22:07:00 -500
  7. Distribution: world
  8. Organization: Software Creations BBS
  9. Reply-To: ken.brady@swcbbs.com (KEN BRADY)
  10. References: <8B87053.0054014A15.uuout@swcbbs.com>
  11. X-Newsreader: PCBoard Version 15.21
  12. X-Mailer: PCBoard/UUOUT Version 1.10
  13.  
  14.  A few comments from a veteran Turbo Pascal programmer:
  15.  
  16.  So> In article <DL2tFM.7DJ@hkuxb.hku.hk>, hwslau@dragon.cs.hku.hk (│t└s)
  17.  So> wrote: >In general, I think Pascal is a good programming language to start with. 
  18.   >At least, it is designed for education purposes.  Apart from Basic, Pascal
  19.  >was my first programming language learnt.  After that, picking up other 
  20.  >structured prog. lang. would not be very difficult.  In fact, I think you 
  21.  >can use Pascal to do anything you want instaed of using other lang.  
  22.  So> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  23.  
  24.  So> I can't agree with this. There are things that you simply can't do in
  25.  So> Pascal.  For example, in C I can swap two integers a and b without
  26.  So> using a temporary variable in three statements: a ^= b; b ^= a; a^= b ,
  27.  So> I can also use bit-vector s.
  28.  So> I can have generic pointers that may point to everything or nothing. 
  29.  
  30. Pascal has generic pointers, as well as type-casting for when you need to
  31. defeat its strong type-checking.
  32.  
  33.  So> I can have 
  34.  So> arrays with no compile-time defined sizes. 
  35.  
  36. In Pascal, arrays are easily allocated dynamically on the heap.
  37.  
  38.  So> AFAIK there are no way of
  39.  So> doing such things in Pascal. At least not in standard Pascal. There are
  40.  So> also many fallback s
  41.  So> in Pascal that are inconvenient for programmers, e.g. no break within
  42.  So> loops.  That's why there are things like Modula-2.
  43.  
  44.  You can break out of a loop (while or for loops) by setting your end-
  45.  conditional true (e.g., setting the while conditional to false, or 
  46.  setting your for-loop variable to its final value.
  47.  
  48.  So> For the original poster, so far I have only seen one employer in Hong
  49.  So> Kong that specifically requires Pascal. It's one of those news
  50.  So> agencies. And believe it o r
  51.  So> not, they use VAX!!
  52.  
  53.  For me, Pascal was a tremendous improvement of Basic an Fortran, and 
  54.  Turbo Pascal was the perfect place to learn the concepts of OOP.  I  
  55.  shudder to imagine learning OOP with C++.  I am not a computer 
  56.  professional; programming is just one of the many tools
  57.  I use in my work (biochemical research).
  58.  
  59.  kbrady@ultranet.com
  60.  
  61. ... Madness takes its toll.  Please have exact change.
  62. ___ Blue Wave/QWK v2.12
  63.  
  64.